//引入mysql模块 并创建连接
const mysql = require('mysql');
const conn = mysql.createConnection({
    host:'127.0.0.1',
    user:'root',
    password:'root',
    database:'mysql_001'
    // multipleStatements:true //启用一个sql语句多条查询功能
})
//导出mysql连接
module.exports = conn;